import request from '@/utils/request'

// 查询过程检验列表
export function listProQuality(query) {
  return request({
    url: '/yyj/qc/proQuality/list',
    method: 'get',
    params: query
  })
}

// 查询过程检验详细
export function getProQuality(reportCode) {
  return request({
    url: '/yyj/qc/proQuality/' + reportCode,
    method: 'get'
  })
}

export function getProQualityByQcCode(reportQcCode) {
  return request({
    url: '/yyj/qc/proQuality/qcCode/' + reportQcCode,
    method: 'get'
  })
}

// 新增过程检验
export function addProQuality(data) {
  return request({
    url: '/yyj/qc/proQuality',
    method: 'post',
    data: data
  })
}

// 修改过程检验
export function updateProQuality(data) {
  return request({
    url: '/yyj/qc/proQuality',
    method: 'put',
    data: data
  })
}

// 删除过程检验
export function delProQuality(reportCode) {
  return request({
    url: '/yyj/qc/proQuality/' + reportCode,
    method: 'delete'
  })
}
